package top.glike.ssl.auto.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.glike.ssl.auto.domain.other.AutoSslDomain;

import java.util.List;

@Mapper
public interface AutoSslConfMapper {

    /**
     * 查询需要自动续期的域名相关信息
     * @return
     */
    List<AutoSslDomain> queryNeedAutoRenewCertList();

    /**
     * 根据域名表ID查询域名配置信息
     * @param id 域名表id
     * @return
     */
    AutoSslDomain queryReConfInfoByDomainId(@Param("id") Long id);

    /**
     * 根据域名查询配置数据
     * @param domainName
     * @return
     */
    AutoSslDomain queryNeedAutoRenewCertByDomainName(@Param("domainName") String domainName);
}
